package com.jeesite.modules.fl.web.app;

import me.chanjar.weixin.common.api.WxConsts;
import me.chanjar.weixin.mp.api.WxMpInMemoryConfigStorage;
import me.chanjar.weixin.mp.api.WxMpService;
import me.chanjar.weixin.mp.api.impl.WxMpServiceImpl;

public class DemoOauth2Url {
  public static void main(String[] args) {
    WxMpInMemoryConfigStorage storage = new WxMpInMemoryConfigStorage();
    storage.setAppId("wxr232");
    WxMpService wxMpService = new WxMpServiceImpl();
    wxMpService.setWxMpConfigStorage(storage);
    String url = wxMpService.oauth2buildAuthorizationUrl("http://www.mrxiaobai.cn/fuller/wx/callback?module=appointment",
        WxConsts.OAuth2Scope.SNSAPI_USERINFO, null);
    System.out.println(url);
  }
}
